import { Component } from "vue"
import { Button, Icon, Swipe, SwipeItem, Image, Form, Field, Cell, CellGroup, NavBar, Tabbar, TabbarItem, Grid, GridItem, Tab, Tabs, Row, Col, Sidebar, Collapse, CollapseItem, SidebarItem, IndexBar, IndexAnchor, Search, Empty, Toast, Tag, DropdownItem, DropdownMenu, Sticky, Card, Rate } from "vant"

const plugins: Component[] = [
    Button, Icon, Swipe, SwipeItem,
    Image, Form, Field, Cell, CellGroup,
    NavBar, Tabbar, TabbarItem, Grid, GridItem,
    Tab, Tabs, Row, Col, Sidebar, SidebarItem, Collapse,
    CollapseItem, IndexBar, IndexAnchor, Search, Empty,
    Toast, Tag, DropdownItem, DropdownMenu, Sticky, Card, Rate
]

export default function (app: any) {
    plugins.forEach(item => {
        app.use(item)
    })
}